Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

DIFxAPI Constants (Constants)
 
.
Summary
Main DIFxAPI constants

C# Constants:

const Int32 DRIVER_PACKAGE_REPAIR = 0x00000001;
const Int32 DRIVER_PACKAGE_SILENT = 0x00000002;
const Int32 DRIVER_PACKAGE_FORCE = 0x00000004;
const Int32 DRIVER_PACKAGE_ONLY_IF_DEVICE_PRESENT = 0x00000008;
const Int32 DRIVER_PACKAGE_LEGACY_MODE = 0x00000010;
const Int32 DRIVER_PACKAGE_DELETE_FILES = 0x00000020;

VB Constants:

Const DRIVER_PACKAGE_REPAIR As Int32 = &H1
Const DRIVER_PACKAGE_SILENT As Int32 = &H2
Const DRIVER_PACKAGE_FORCE As Int32 = &H4
Const DRIVER_PACKAGE_ONLY_IF_DEVICE_PRESENT As Int32 = &H8
Const DRIVER_PACKAGE_LEGACY_MODE As Int32 = &H10
Const DRIVER_PACKAGE_DELETE_FILES As Int32 = &H20

Notes:

DRIVER_PACKAGE_REPAIR re-installs the specified driver package in the driver store even if the driver package is already installed.
DRIVER_PACKAGE_SILENT suppresses the display of user interface items. If a user interaction is required to complete an installation, the installation will fail.
DRIVER_PACKAGE_FORCE (Applies only to PnP function drivers) preinstalls and installs the specified driver package even if the driver package that is currently installed for a device is not a better match for the device than the specified driver package.
DRIVER_PACKAGE_ONLY_IF_DEVICE_PRESENT (Applies only to PnP function drivers) preinstalls and installs the driver only if the driver package is a better match to a device in the device tree.
DRIVER_PACKAGE_LEGACY_MODE preinstalls and installs unsigned driver packages and driver packages that cannot be completely preinstalled because there are files that cannot be found.
DRIVER_PACKAGE_DELETE_FILES removes the binary files from a system that were copied to the system when the driver package was installed. The function removes a binary file from the system only if the binary file is identical to the corresponding binary file in the driver store. A caller should use this flag with caution. A caller should only use this flag if the caller can verify that a binary file in the system is not required by any other driver package or application.
 

Please edit this page!

Do you have...

  • helpful tips?
  • corrections to the existing content?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it!

 
Access PInvoke.net directly from VS:
Terms of Use
Edit This Page
Find References
Show Printable Version
Revisions